//
// Created by user on 20-5-5.
//

#ifndef _PREEMPT_H_
#define _PREEMPT_H_

#include "../Task.h"

#define preemptEnable()        \
do                    \
{                    \
    current->preemptCount--;    \
}while(0)

#define preemptDisable()        \
do                    \
{                    \
    current->preemptCount++;    \
}while(0)

#endif //_PREEMPT_H_

